package com.hfh.main.matrix.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;
import java.util.stream.Stream;

@AllArgsConstructor
@Getter
public enum WeekMatrixEnum {

    PROJECT_HANAGER("项目经理", "领导力", "沟通能力", "组织协调", "问题解决", "时间管理"),
    PRODUCT_MANAGER("产品经理", "用户洞察", "产品规划", "市场分析", "技术理解", "数据驱动"),
    UI_STYLIST("UI设计师", "视觉审美", "用户体验", "设计软件", "创意思维", "交互设计"),
    SYSTEM_ARCHITECT("系统架构师", "系统设计", "技术领导", "业务理解", "沟通能力", "问题解决"),
    BUSINESS_ANALYST("业务分析师", "需求梳理", "市场洞察", "数据分析", "沟通能力", "方案规划"),
    TECHNIACL_ENGINEER("研发工程师", "技术专精", "创新思维", "代码实现", "团队合作", "问题排查"),
    TEST_ENGINEER("测试工程师", "技术专精", "创新思维", "代码实现", "团队合作", "问题排查");

    private final String name;
    private final String matrix1Name;
    private final String matrix2Name;
    private final String matrix3Name;
    private final String matrix4Name;
    private final String matrix5Name;

    public static WeekMatrixEnum of(String name) {
        return Stream.of(values()).filter(o -> Objects.equals(o.getName(), name)).findFirst().orElse(null);
    }


}
